import { Icon } from '@iconify/react/dist/iconify.js';
import React from 'react';

interface PageHeaderProps {
	title: string;
}
const PageHeader: React.FC<PageHeaderProps> = ({ title }) => {
	const handleBack = () => {
		window.history.back();
	};
	return (
		<div className="bg-white p-12px flex items-center text-20px mb-12px">
			<div className="flex items-center cursor-pointer mr-24px" onClick={handleBack}>
				<Icon icon="ant-design:left-outlined"></Icon>
			</div>
			<div className="font-bold text-20px leading-32px">{title}</div>
		</div>
	);
};

export default PageHeader;
